<?php

namespace App\Repositories\Demo;

use App\Models\BaseModel;
use App\Models\DemoModel;
use App\Contracts\IRepository;
use App\Repositories\BaseRepository;

class DemoRepository extends BaseRepository implements IRepository
{
    protected $orm;

    public function __construct(DemoModel $orm)
    {
        parent::__construct();
        $this->orm = $orm;
    }

    public function store(array $attributes)
    {
        // TODO: Implement store() method.
    }

    public function delete(BaseModel $model)
    {
        // TODO: Implement delete() method.
    }

    public function put(BaseModel $model, $attributes)
    {
        // TODO: Implement put() method.
    }

    public function has(int $id)
    {
        // TODO: Implement has() method.
    }

    public function getOne(int $id, $fields = null)
    {
        return $this->orm->getOne($id, $fields);
    }

    public function getMany(array $map, $fields = null)
    {
        // TODO: Implement getMany() method.
    }

    public function getColumn($field = null)
    {
        // TODO: Implement getColumn() method.
    }
}
